Skip to main content
POST
/
offerings
/
{offering_id}
/
set-main
Mark an offering as "main"
curl --request POST \
  --url https://api.qonversion.io/v4/offerings/{offering_id}/set-main \
  --header 'Authorization: Bearer <token>'
{
  "object": "offering",
  "id": "premium_monthly",
  "url": "/v4/offerings/premium_monthly",
  "tag": 123,
  "product_ids": [
    "<string>"
  ],
  "created_at": "2025-09-15T12:30:00Z",
  "updated_at": "2025-11-03T10:26:40Z"
}

Authorizations

Authorization
string
header
required

Bearer authentication using the project Secret Key (prefixed with sk_, or test_sk_ for sandbox). All v4 public endpoints require the Secret Key — see Authentication. Never expose the Secret Key in client-side code.

Path Parameters

offering_id
string
required

Response

Offering marked as main

object
enum<string>
required
Available options:
offering
id
string
required
Example:

"premium_monthly"

url
string
required
Example:

"/v4/offerings/premium_monthly"

tag
integer<int16> | null
required

0 = default offering, 1 = A/B test variant. Null for offerings without a tag.

product_ids
string[]
required

Product UIDs that belong to this offering, in display order.

created_at
string<date-time>
required
Example:

"2025-09-15T12:30:00Z"

updated_at
string<date-time>
required
Example:

"2025-11-03T10:26:40Z"